<div class="febs-container" >
    <div class="febs-body layui-fluid" lay-title="流程操作记录" id="febs-modelShip-procList">
        <div class="febs-table-full">
            <!--<table lay-filter="modelShipProcListTable" id="modelShipProcListTable" lay-data="{id: 'modelShipProcListTable'}"></table>-->
            <div id="procs_table"></div>
        </div>
    </div>

    <script type="text/javascript" data-th-inline="javascript">
        var id = [[${id}]];
        layui.use(['jquery', 'laydate', 'febs', 'form', 'table', 'commonJS', 'validate'], function () {
            var $ = layui.jquery,
                laydate = layui.laydate,
                febs = layui.febs,
                form = layui.form,
                table = layui.table,
                commonJS = layui.commonJS,
                validate = layui.validate,
                laydate = layui.laydate,
                table_data = [];

            get_data();

            function get_data () {
                febs.get(ctx + 'modelShip/getProcList/'+id, {}, function (result) {
                    if (result.code == 200) {
                        table_data = result.data;
                        buildTable();
                    }
                });
            }

            function buildTable() {
                table.render({
                    elem: '#procs_table',
                    // id: 'modelShipProcListTable',
                    data: table_data,
                    cols: [
                        [
                            {field: 'action', title: '操作', minWidth: 120},
                            {field: 'endDate', title: '时间', minWidth: 120}
                        ]
                    ]
                });
            }


        });
    </script>
</div>
